package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MapperdStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    <T> List<T> query(Configuration configuration, MapperdStatement mapperdStatement, Object... params) throws Exception;

    int doUpdate(Configuration configuration, MapperdStatement mapperdStatement, Object... params) throws Exception;

    void close() throws SQLException;


}
